export default {
  methods: {
    pushListBtns() {
      if (!this.$refs.listOps) {
        return;
      }
      this.btns = this.$refs.listOps.getBtns();
      console.log(btns)
      this.rowHandle.custom = [];
      this.btns.forEach(item => {
        this.rowHandle.custom.push({
          title: item.name,
          size: 'mini',
          emit: `${item.url}-model`,
          icon,
          style: "color:#f56c6c;"
        });
      })
      //添加非权限操作按钮
      this.rowHandle.custom.push({title: '权限', size: 'mini', emit: 'show-detail', icon: "fa fa-share-alt", style: "color:#027be3;"});
    },
  }
}
